﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{
    public class Coupon
    {
        /// <summary>
        /// 券ID（如JD2025SPRING）
        /// </summary>
        [Key]
        [Required]
        [StringLength(16)]
        public string? coupon_id { get; set; }

        /// <summary>
        /// 类型（1满减/2折扣）
        /// </summary>
        [Required]
        public int discount_type { get; set; }

        /// <summary>
        /// 最低使⽤⾦额
        /// </summary>
        [Required]
        public decimal min_amount { get; set; }

        /// <summary>
        /// 领取⽤户ID
        /// </summary>

        public int user_id { get; set; }
    }
}
